package cn.seocoo.platform.validatecode.domain;

import cn.seocoo.platform.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * [验证码]表 tb_validatecode
 * 
 * @author cdw
 * @date 2019-10-21
 */
public class Validatecode extends BaseEntity
{
	private static final long serialVersionUID = 1L;


	/**  */
	private Integer id;
	/** 手机号 */
	private String phone;
	/** 验证码 */
	private String validateCode;
	/** 有效期 */
	private Date validityTime;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setPhone(String phone) 
	{
		this.phone = phone;
	}

	public String getPhone() 
	{
		return phone;
	}
	public void setValidateCode(String validateCode) 
	{
		this.validateCode = validateCode;
	}

	public String getValidateCode() 
	{
		return validateCode;
	}
	public void setValidityTime(Date validityTime) 
	{
		this.validityTime = validityTime;
	}

	public Date getValidityTime() 
	{
		return validityTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phone", getPhone())
            .append("createTime", getCreateTime())
            .append("validateCode", getValidateCode())
            .append("validityTime", getValidityTime())
            .toString();
    }
}
